import { numa, numb } from './utils/a'
import { add, minus } from './utils/b'
import $ from 'jquery'
import './2.css'
import './3.less'

// let Mock = require('mockjs')
// import Mock from 'mockjs'
// Mock.mock('/a/b/c', 'get', {
//   "string|1-10": "★"
// })
// Mock.mock('/a/b/c', 'post', {
//   "string|1-10": "★"
// })

console.log(add(numa, numb))
// console.log(minus(numb, numa))
let btn = document.getElementById('btn');
import src from './1.svg'
btn.onclick = function () {
  console.log(add(numa, numb))
  let img = new Image();
  img.src = src;
  document.body.appendChild(img)
  // $.ajax({
  //   // url: 'https://www.renrendai.com/p2p/bond/isShowBondOffDialog',
  //   url: '/p2p/bond/isShowBondOffDialog',
  //   method: "post",
  //   success(data) {
  //     console.log(data)
  //   }
  // })

  // $.ajax({
  //   // url: 'https://www.renrendai.com/p2p/bond/isShowBondOffDialog',
  //   url: '/api/batch?v=1&sdk=1.7.11',
  //   method: "post"
  // })
  // $.get('./1.json')

  // $.get('/p2p/bond/qwe/qwe')
  // $.post('/p2p/bond/qwe/login',{name:"珠峰",psw:1234})

  // $.get('/a/b/c', function (data) {
  //   console.log(data)
  // })
  // $.post('/a/b/c', function (data) {
  //   console.log(data)
  // })
  // fetch('/a/b/c')
}
var obj = {}
// console.log(PRODUCTION)
// console.log(VERSION)
// console.log(BROWSER_SUPPORTS_HTML5)
// console.log(TWO)
// console.log(typeof window)
// console.log(process.env.NODE_ENV)
// console.log(21355)
// console.log(obj.a.q)